package com.example.SBootDemo.Util.RabbitMQ;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic.message1")
public class ReceivedInfo {

	 @RabbitHandler
	    public void process(String hello) {
	        System.out.println("Exchange  : " + hello);
	    }
}
